package com.huilang;

public class te3 {
    public static void main(String[] args) {
        System.out.println(Singleton3.getSingleton3()==(Singleton3.getSingleton3()));
    }
}

class Singleton3 {
    private static Singleton3 singleton3;

    public static  Singleton3 getSingleton3() {
        if (singleton3 != null) {
            return singleton3;
        }
        synchronized (Singleton3.class) {
            if (singleton3 == null) {
                singleton3 = new Singleton3();
            }
        }
        return singleton3;
    }
}